<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>login Succesful!</title>
</head>
<body>

<?php
$filename="C:/xampp/htdocs/librejo/trunk/WEB/users.txt";
$fp = fopen("$filename", "r");
$succesfull=false;
if ($fp){
	while (!feof($fp)) {
		$line=fgets($fp);
		$info = explode('|', $line);
		if ($info[0]=$_POST['userName']&&$info[1]=$_POST['password']){
			$succesfull=true;
		}
	}
	fclose($fp);
	if($succesfull){
		echo funcionaaaa;
	}

}
?>

</body>
</html>
